import React, { Component, useEffect } from 'react'
import { observer, inject } from 'mobx-react'
import axios from 'axios'

const App = function (props) {
  useEffect(() => {
    axios.get('http://121.89.205.189:3001/api/pro/list').then(res => {
        // console.log(res)
        props.store.changeProList(res.data.data)
      })
      
  }, [])
  console.log(props)
  return (
    <div>app</div>
  )
}
export default inject('store')(observer(App)) 